package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 广告地图分类表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-11-06
 */
@TableName("wz_adv_map_category")
public class WzAdvMapCategory extends Model<WzAdvMapCategory> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "adv_map_category_id", type = IdType.AUTO)
    private Long advMapCategoryId;
    /**
     * 名称
     */
    private String name;
    /**
     * 父级id
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 分类图标
     */
    private String pic;
    /**
     * 级别
     */
    private Integer level;
    /**
     * 排序
     */
    private Integer sort;


    public Long getAdvMapCategoryId() {
        return advMapCategoryId;
    }

    public void setAdvMapCategoryId(Long advMapCategoryId) {
        this.advMapCategoryId = advMapCategoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.advMapCategoryId;
    }

    @Override
    public String toString() {
        return "WzAdvMapCategory{" +
        "advMapCategoryId=" + advMapCategoryId +
        ", name=" + name +
        ", parentId=" + parentId +
        ", pic=" + pic +
        ", level=" + level +
        ", sort=" + sort +
        "}";
    }
}
